<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<link type="text/css" rel="stylesheet" href="${ctx}/static/styles/style.css">
<script type="text/javascript" src="http://libs.baidu.com/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="${ctx}/static/scripts/winwine.js"></script>

<div class="topNav">
	<div class="logoBox"><a href="${ctx}/"><img src="${ctx}/static/images/logo.png" alt="红酒会"></a></div>
    <div class="topNav_L">
    	<ul class="topNav_ul01">
    		<li ${param.module=='vintry'?'class="now_sl"':''}><a href="${ctx}">酒管家</a></li>
    		<li ${param.module=='talk'?'class="now_sl"':''}><a href="${ctx}/talk">酒说说</a></li></ul>
        <ul class="topNav_ul02">
        	<li class="icon01"><a href="#"></a></li>
            <li class="icon02"><a href="#"></a></li>
            <c:if test="${not empty sessionScope.user}">
            	<li class="icon03"><a href="#"></a><span>2</span></li>
            </c:if>
        </ul>
        <div class="topNav_ul03" ${empty sessionScope.user?'style="width:259px;"':''}>
        	<span>
		        <c:choose>
		        	<c:when test="${empty sessionScope.user}">
		        		<div class="wdlBox">
		        			<a class="welBoxDL" href="${ctx}/login">登录</a>|<a class="welBoxZC" href="${ctx}/register">注册</a>
		        		</div>
		        	</c:when>
		        	<c:otherwise>
		        		<a class="welBox" href="#">你好，administrator</a>
		        		<ul class="admUlbox">
		                    <li><a class="admA01" href="">我的主页</a></li>
		                    <li><a class="admA02" href="">修改密码</a></li>
		                    <li><a class="admA03" href="">收藏夹</a></li>
		                    <li class="tuichu"><a class="admA04" href="${ctx}/logout">退出</a></li>
                		</ul>
		        	</c:otherwise>
		        </c:choose>
        	</span>
        </div>
    </div>
</div>

<div class="fucengtouming"></div>
<div id="addMoreImgpopDiv" class="addMoreImgpop"><img src="${ctx}/static/images/all_new_pop.png" alt=""><b class="closedMore"></b></div>
<div id="addMoreImgspeakDiv" class="addMoreImgspeak"><img src="${ctx}/static/images/speak_new_pop.png" alt=""><b class="closedMore"></b></div>